package com.nebula.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.nebula.pojo.FriendsSession;

public interface FriendsSessionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FriendsSession record);

    int insertSelective(FriendsSession record);

    FriendsSession selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FriendsSession record);

    int updateByPrimaryKey(FriendsSession record);
    
    List<FriendsSession> selectFriendsSessionList(String username);
    
    int checkUserAndFriendExist(@Param("username") String username,@Param("friendname") String friendname);
    
    int updateByUserAndFriend(FriendsSession friendsSession);
}